package com.jilintongyi.jlcrtvu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jilintongyi.jlcrtvu.entity.SysUser;
import com.jilintongyi.jlcrtvu.reponsitory.UserReponsitory;
import com.jilintongyi.jlcrtvu.service.UserService;

/**
 * 用户服务接口实现类
 */
@Service
public class UserServiceImpl extends BaseServiceImpl implements UserService {
	@Autowired
	private UserReponsitory userReponsitory;

	/**
	 * 根据用户名查找用户
	 */
	public SysUser findByUsername(String username) {
		return userReponsitory.findByUsernameAndDeleted(username, false);
	}
}
